package resources;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;

public class Assets {

	public static AssetManager manager = new AssetManager();

	public static Music music;
	
	public static BitmapFont waveFont;
	public static BitmapFont barFont;
	public static BitmapFont noteFont;
	
	public static Texture loadTexture (String file) {
		return new Texture(Gdx.files.internal(file));
	}
	
	public static void load() {
		manager.clear();
		manager.load("data/Background.png", Texture.class);
		manager.load("data/bgGames1.png", Texture.class);
		manager.load("data/bgGames2.png", Texture.class);
		manager.load("data/bgGames3.png", Texture.class);
		manager.load("data/Title.png", Texture.class);
		manager.load("data/tetrisTitle.png", Texture.class);
		manager.load("data/bgUI.png", Texture.class);
//		manager.load("data/Buttonbg.png", Texture.class);
		manager.load("data/PlayButton.png", Texture.class);
		manager.load("data/LoadGameButton.png", Texture.class);
//		manager.load("data/Blue square.png", Texture.class);
//		manager.load("data/Green square.png", Texture.class);
//		manager.load("data/Orange square.png", Texture.class);
//		manager.load("data/Pink square.png", Texture.class);
//		manager.load("data/Purple square.png", Texture.class);
//		manager.load("data/Red square.png", Texture.class);
//		manager.load("data/Yellow square.png", Texture.class);
//		manager.load("data/2.png", Texture.class);
//		manager.load("data/I.png", Texture.class);
//		manager.load("data/L.png", Texture.class);
//		manager.load("data/Mirror L.png", Texture.class);
//		manager.load("data/O.png", Texture.class);
//		manager.load("data/S.png", Texture.class);
//		manager.load("data/T.png", Texture.class);
		
		waveFont = new BitmapFont(Gdx.files.internal("data/cardfont.fnt"), Gdx.files.internal("data/cardfont.png"), false);
		waveFont.setScale(2.0f);
		waveFont.setColor(Color.RED);
		
		barFont = new BitmapFont(Gdx.files.internal("data/cardfont.fnt"), Gdx.files.internal("data/cardfont.png"), false);
		barFont.setColor(Color.ORANGE);
		
		noteFont = new BitmapFont(Gdx.files.internal("data/cardfont.fnt"), Gdx.files.internal("data/cardfont.png"), false);
		noteFont.setColor(Color.BLUE);
		
	}
	public void unload() {
		manager.clear();
		manager.dispose();
	}
	public static void playSound (Sound sound) {
	}

}


